//#include <tchar.h>
//#include <crtdbg.h>
#include "server.h"



using namespace NOEXIT;

//bool CtrlHandler( DWORD fdwCtrlType );

int main(int argc, char* argv[])
{
	//_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
	//_CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_DEBUG);

	//SetConsoleCtrlHandler( (PHANDLER_ROUTINE) CtrlHandler, TRUE );

	CServer srv;

	srv.start();

	return 1;
}
/*
bool CtrlHandler( DWORD fdwCtrlType )
{ 
	switch( fdwCtrlType ) 
	{ 
		// Handle the CTRL-C signal. 
	case CTRL_C_EVENT: 
	case CTRL_CLOSE_EVENT:
		return( TRUE ); 

		// Pass other signals to the next handler. 
	case CTRL_BREAK_EVENT:
	case CTRL_LOGOFF_EVENT:
	case CTRL_SHUTDOWN_EVENT:
		return FALSE; 

	default: 
		return FALSE; 
	} 
} 
*/
